package com.mayikt;

import org.openjdk.jol.info.ClassLayout;

import java.util.Hashtable;

/**
 * @ClassName Test007
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test007 extends Thread {
    private Object object = new Object();

    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            synchronized (object) {
                System.out.println(ClassLayout.parseInstance(object).toPrintable());
            }

        }
    }


    public static void main(String[] args) {
        new Test003().start();
    }
}
